package com.superbytecode.cloud.albb.produce.controller;


import com.superbytecode.cloud.albb.produce.service.AlbbMQProduceService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * All rights Reserved, Designed By www.super-master.com
 *
 * @ProjectName: beacon-cloud
 * @Package: com.superbytecode.cloud.albb.produce.controller
 * @ClassName: AlbbProducerController
 * @Description: []
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2024/10/30 10:25
 * @Version: V1.0
 * @Copyright: 2024 www.super-master.com Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@RestController
@RequestMapping("/rocketmq/albb")
public class AlbbProducerController {
    @Resource
    private AlbbMQProduceService albbMQProduceService;

    @RequestMapping("/simple/sending")
    public String sendSimpleMessages(@RequestBody Map<String,Object> messageBody) {
        return albbMQProduceService.sendSimpleMessages(messageBody);
    }
}